<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>阿波斯</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no"/>
	<meta name="format-detection" content="email=no" />
	<meta name="W_design" content="750" />
    <script src="js/flexible_v2.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/animate.min.css"/>
    <!--<script src="js/main.js"></script>-->
	
	</head>
	
	<body>
		
		<div id="app">
			
		</div>
		<!--setp1 index-->
		<div class="step1">
			<audio src="img/music.mp3" id="bg-music" preload="auto" loop="loop" style="display: none;"></audio>
			<div class="logo wow flipInX" data-wow-duration="3s">
				<img src="img/logo.png"/>
			</div>
			
			<div class="ray1 wow flash infinite" data-wow-duration="3s">
				<img src="img/ray1.png"/>
			</div>
			
			<div class="ray2 wow flash infinite" data-wow-duration="3s">
				<img src="img/ray2.png"/>
			</div>
			
			<div class="title wow slideInDown" data-wow-duration="2s" data-wow-delay="0s">
				<img class="wow bounceIn" src="img/han.png" data-wow-duration="5s"/>
			</div>
			
			<div class="start1">
				<img src="img/start1.png" alt="" />
			</div>
			
			<div class="start wow fadeInUpBig">
				<img class="wow pulse infinite" src="img/Enter.png" />
			</div>
			
		</div>
		
		
		<!--setp2 -->
		<div class="step2" style="display:none ;">
			<video id="MainVideo" preload="auto" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true" width="100%" height="100%" preload="auto" width="100%">
                <source src="http://oss.meng.wop100.cn/vv/img/vv.mp4" type="video/mp4"/>
                Your browser does not support HTML5 video.
            </video>
		</div>
		
	
		<script src="js/jquery-2.1.0.min.js"></script>
		<script src="js/vue.js"></script>
		<script src="js/vue-resource.js"
		<script src = "https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script src="js/wow.js"></script>
		<script type="text/javascript">
			//init wow
			new WOW().init();
			
			//music
			var ua = window.navigator.userAgent.toLowerCase();
			var audio = document.getElementById('bg-music');
			document.addEventListener('DOMContentLoaded', function () {
				function audioAutoPlay() {
					
					if(audio) {
						audio.play();
						if (ua.match(/MicroMessenger/ig) == 'micromessenger') {
							document.addEventListener("WeixinJSBridgeReady", function () {
								audio.play();
							}, false);
						}
					}
				}
				audioAutoPlay();
			});
						
			
			
			
			
			//video
			oVideo = document.getElementById("MainVideo");
			
			$(".start").click(function(){
				$(".step1").hide();
				$(".step2").show();
				oVideo.play();
				audio.pause();
			})
			
		</script>
		<script type="text/javascript">
			//vue	
			new Vue({
				el:'#app',
				data:{
	
					weixinparam:''
				},
				
				mounted: function created() {
		            var self = this;
		            self.getparam();
		        },
				methods:{
					
			        //取分享等参数接口 可以重复调用     shareSucess && shareCard
			        getparam: function () {
			            var self = this;
			            self.$http.post('/site/getparam', { 'url': location.href }).then(function (response) {
			                
			                self.weixinparam = response.data.data;
			                wx.config({
			                    debug: false,
			                    appId: self.weixinparam.appId, // 必填，公众号的唯一标识
			                    timestamp: self.weixinparam.timestamp, // 必填，生成签名的时间戳
			                    nonceStr: self.weixinparam.nonceStr, // 必填，生成签名的随机串
			                    signature: self.weixinparam.signature, // 必填，签名，见附录1
			                    jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
			                });
			                
			                wx.ready(function () {
			
			                    wx.onMenuShareTimeline({
			                        title: "阿波斯5000系列拖拉机价值体验会", // 分享标题
			                        link: 'http://logo.up6.com.cn', // 分享链接
			                        imgUrl: "http://bjxdtest.wop100.cn/vv/img/share.jpg", // 分享图标
			                       
			                        cancel: function cancel() {}
			                        
			                    });
			                    
			                    wx.onMenuShareAppMessage({
			                        title: "阿波斯5000系列拖拉机价值体验会", // 分享标题
			                        desc: "诚邀您莅临品鉴", // 分享描述
			                        link: 'http://logo.up6.com.cn', // 分享链接
			                        imgUrl: 'http://bjxdtest.wop100.cn/vv/img/share.jpg', // 分享图标
			                        type: 'link', // 分享类型,music、video或link，不填默认为link
			                        dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
			                        
			                        cancel: function cancel() {}
			                    });
			                });
			            }, function (error) {});
			        },
				},
			})
		</script>
		
		

		<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script>
		   var isMobile = {
		    _ua: window.navigator.userAgent,
		    Android: function () {
		        return this._ua.match(/Android/i) ? true : false;
		    },
		    BlackBerry: function () {
		        return this._ua.match(/BlackBerry/i) ? true : false;
		    },
		    iOS: function () {
		        return this._ua.match(/iPhone|iPad|iPod/i) ? true : false;
		    },
		    Windows: function () {
		        return this._ua.match(/IEMobile/i) ? true : false;
		    },
		    WeiXin: function () {
		        return this._ua.match(/MicroMessenger/i) ? true : false;
		    },
		    any: function () {
		        return (this.Android() || this.BlackBerry() || this.iOS() || this.Windows());
		    }
		};
		   
		
		    var __ForWeixin = {
		        img: "http://pitch.starydata.com/share.jpg",
		        url: "http://pitch.starydata.com/",
		        title: "融·共鸣",
		        descTxt: "相约西湖，纪录频道生态伙伴大会，我们等着你~",
		        titleTimeline: "CCTV-9 纪录频道生态伙伴大会"
		    };
		
		    if (isMobile.WeiXin()) {
		               with (document)[(getElementsByTagName('body')[0] || body).appendChild(createElement('script')).src = 'http://www.starydata.com:88/wxapi/weixin_sdk_api.php?url=http://pitch.starydata.com/'];

		
		</script>
				


	       
	</body>
</html>